#ifndef DAILY_WIDGET_H
#define DAILY_WIDGET_H

#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QScrollArea>
#include <QPushButton>
#include "one_dynamic.h"
#include "new_dynamic.h"
class daily_widget : public QWidget
{
    Q_OBJECT
public:
    explicit daily_widget(QWidget *parent = 0);
    QScrollArea *scroll;
    QWidget *scrollAreaWidgetContents;
    QHBoxLayout *topLay;
    QVBoxLayout *layout;
    QVBoxLayout *mainLay;
    one_dynamic *dynamic;
    one_dynamic *dynamic2;
    QPushButton *plusBtn;
    new_dynamic *newDynamic;

    void paintEvent(QPaintEvent *event);
    QVector<struct DailySummary> allDailySummary;
    void initAllDailySummary();
signals:

public slots:
    void onBtnPlusClicked(bool on);
    void onNewDynamicEmit(QString,QString);
};

#endif // DAILY_WIDGET_H
